package com.chuxi.demo.jdkproxy;

import java.lang.reflect.Proxy;

/**
 * @ Author:任留辉
 * @ Description:
 * @ Date:Created in 19:43 2021/7/23 0023
 */
public class client {
    public static void main(String[] args) {
        employeeImpl employee = new employeeImpl();
        employee p2 = (employee) Proxy.newProxyInstance(employee.getClass().getClassLoader(), employee.getClass().getInterfaces(), new JdkProxy01(employee));
        p2.addEmployee("tom", 20);
    }
}
